﻿<%@ Page Title="Datos del Cliente" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmClienteVendedor.aspx.cs" Inherits="Crosland.Automotriz.Web.wFrmClienteVendedor" UICulture="es" Culture="es-PE" %>

<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <script src="Scripts/validacion.js" type="text/javascript"></script>

          <script type="text/javascript">

              function ShowCreateAccountWindow() {
                  pcCreateAccount.Show();
              }

              function ShowCreateAccountWindow7() {
                  popupErrores.Show();
              }

              function OnGridFocusedRowChanged(s, e) {
                  s.GetRowValues(s.GetFocusedRowIndex(), 'NOMBRE;APELLIDO;ID_VENDEDOR', RecieveGridValues);
              }

              function RecieveGridValues(values) {
                  var nombre = rtrim(values[0]).toUpperCase();
                  var apellido = rtrim(values[1]).toUpperCase();
                  txtDescripcionVendedor.SetText(apellido + " " + nombre);
                  txtIdVendedor.SetText(values[2]);
              }

          </script>
                  <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" >
    <ContentTemplate>
    
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" 
            AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
        <ProgressTemplate>
        <div style="padding: 10px; border: 1px solid #C0C0C0; position: absolute; top: 231px; left: 652px; background-color: #FFFFFF; color: #000000; width: 200px; height: 50px; text-align: center;">
            <img src="Images/loading2.gif" style="vertical-align: middle; margin-right: 10px;" />
            <asp:Label ID="feedback" Text="Por favor espere..." runat="server" 
                ForeColor="#333333" Font-Bold="True" Font-Names="Verdana"></asp:Label>
                </div>
        </ProgressTemplate>
        </asp:UpdateProgress>
    


          <div class="main-header" style="width:100%;">
            <div class="main-titulo" style="text-align: left">Listado de Clientes por Vendedor</div>
          </div> 

        <div style="padding: 15px">
                        
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table>
                    <tr>
                        <td width="163px">
                <dx:ASPxButton ID="btnLocales" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" onclick="btnLocales_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Ver Locales" 
                    Width="160px">
                    <Image Url="~/Images/building.png">
                    </Image>
                </dx:ASPxButton>
                        </td>
                        <td width="163px">
                            <dx:ASPxButton ID="btnSalir" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" onclick="btnSalir_Click" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Salir" 
                                Width="160px">
                                <Image Url="~/Images/logout.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                        <td width="163px">
                            &nbsp;</td>
                        <td width="163px">
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <table width="100%" align="left" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td valign="top" align="left" style="padding-right: 5px" width="503">
            <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="500px" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
            GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" HeaderText="Buscar Vendedor" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Height="82px">

                  <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                      PaddingTop="10px" />
<ContentPaddings PaddingLeft="9px" PaddingTop="10px" PaddingRight="11px" PaddingBottom="10px"></ContentPaddings>

                  <HeaderStyle>
                  <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                      PaddingTop="3px" />
<Paddings PaddingLeft="9px" PaddingTop="3px" PaddingRight="11px" PaddingBottom="6px"></Paddings>
                  </HeaderStyle>

                  <PanelCollection>
<dx:PanelContent ID="PanelContent3" runat="server" SupportsDisabledAttribute="True">
               <table>
               
               <tr>
                            <td style="width: 53px" class="formato-tabla-td">
                                &nbsp;<asp:Label ID="Label1" runat="server" 
                                    Text="Codigo:" BorderStyle="None"></asp:Label>
                            </td>
                            <td style="width: 75px">
                                <dx:ASPxTextBox ID="txtCodigoVendedor" runat="server" Height="25px" Width="70px" 
                                    ClientInstanceName="txtCodigoVendedor" ReadOnly="True" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <Paddings PaddingLeft="5px" />
<ValidationSettings>
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                            <td style="width: 275px">
                                <dx:ASPxTextBox ID="txtDescripcionVendedor" runat="server" Height="25px" 
                                    ReadOnly="True" Width="270px" ClientInstanceName="txtDescripcionVendedor" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <Paddings PaddingLeft="5px" />
<ValidationSettings>
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                                </dx:ASPxTextBox>
                            </td>
                            <td style="width: 50px">
                                <dx:ASPxButton ID="ASPxButton4" runat="server" AutoPostBack="False" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Width="10px" Height="25px" VerticalAlign="Middle">
                                    <ClientSideEvents CheckedChanged="function(s, e) {

}" Click="function(s, e) {
		ShowCreateAccountWindow();
}" />
<ClientSideEvents Click="function(s, e) {
		ShowCreateAccountWindow();
}" CheckedChanged="function(s, e) {

}"></ClientSideEvents>
                                    <Image Url="~/Images/three_dots.png">
                                    </Image>
                                </dx:ASPxButton>
                            </td>

                            
                        </tr>

               
               </table>


               
               
                </dx:PanelContent>
</PanelCollection>


                  </dx:ASPxRoundPanel>
                        </td>
                        <td valign="top" align="left" style="padding-right: 5px">
                            <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" Width="100%" 
            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
            GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" HeaderText="Sector" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Height="82px">

                  <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                      PaddingTop="10px" />
<ContentPaddings PaddingLeft="9px" PaddingTop="10px" PaddingRight="11px" PaddingBottom="10px"></ContentPaddings>

                  <HeaderStyle>
                  <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                      PaddingTop="3px" />
<Paddings PaddingLeft="9px" PaddingTop="3px" PaddingRight="11px" PaddingBottom="6px"></Paddings>
                  </HeaderStyle>

                  <PanelCollection>
<dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
    <table style="height: 29px">
        <tr>
            <td style="width: 130px">
                <asp:Label ID="Label2" runat="server" Text="Seleccione un sector:"></asp:Label>
            </td>
            <td>
                <dx:ASPxComboBox ID="cboSector" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Height="25px" AllowMouseWheel="False" DropDownStyle="DropDown" 
                    EnableAnimation="False" EnableFocusedStyle="False" EnableTheming="True" 
                    ShowLoadingPanel="False" ShowLoadingPanelImage="False" ShowShadow="False">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Resultado"></asp:Label>
            </td>
            <td>
                <dx:ASPxComboBox ID="cboTipoResultado" runat="server" AllowMouseWheel="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Height="25px" SelectedIndex="0" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    Width="100px" EnableAnimation="False" EnableDefaultAppearance="False" 
                    EnableTheming="False" EnableViewState="False" EncodeHtml="False" 
                    ShowLoadingPanel="False" ShowLoadingPanelImage="False" ShowShadow="False">
                    <Items>
                        <dx:ListEditItem Selected="True" Text="Montos US$" Value="1" />
                        <dx:ListEditItem Text="Unidades" Value="2" />
                    </Items>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                    <Paddings PaddingLeft="5px" />
                </dx:ASPxComboBox>
            </td>
        </tr>
    </table>
</dx:PanelContent>
</PanelCollection>


                  </dx:ASPxRoundPanel>
</td>
                        <td align="left" valign="top">
                            <dx:ASPxButton ID="btnConsultar" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" Height="77px" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Consultar" 
                                Width="100%" onclick="btnConsultar_Click">
                                <Image Url="~/Images/search.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height="10">
            <div style="display:none">
                <dx:ASPxTextBox ID="txtIdVendedor" runat="server" 
                    ClientInstanceName="txtIdVendedor" Height="20px" ReadOnly="True" Width="100px" >
                    <ValidationSettings ErrorText="Valor inválido">
                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
                </div>
            </td>
        </tr>
    </table>



                <dx:ASPxGridView ID="grdClientes" runat="server" AutoGenerateColumns="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" Width="100%" Font-Size="9px" 
                KeyFieldName="ID_CLIENTE">
                    <Columns>
                        <dx:GridViewCommandColumn VisibleIndex="0" ShowSelectCheckbox="True">
                            <ClearFilterButton Visible="True">
                            </ClearFilterButton>
                        </dx:GridViewCommandColumn>
                        <dx:GridViewDataTextColumn Caption="Cliente" FieldName="Cliente" 
                            VisibleIndex="1" Width="100%">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Departamento" FieldName="Departamento" 
                            VisibleIndex="2" Width="100px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Provincia" FieldName="Provincia" 
                            VisibleIndex="3" Width="100px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Distrito" FieldName="Distrito" 
                            VisibleIndex="4" Width="100px">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Total" FieldName="Total" 
                            VisibleIndex="5" Width="100px">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Ene" FieldName="Enero" VisibleIndex="6">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Feb" FieldName="Febrero" 
                            VisibleIndex="7">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Mar" FieldName="Marzo" VisibleIndex="8">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Abr" FieldName="Abril" VisibleIndex="9">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="May" FieldName="Mayo" VisibleIndex="10">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Jun" FieldName="Junio" VisibleIndex="11">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Jul" FieldName="Julio" VisibleIndex="12">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Ago" FieldName="Agosto" 
                            VisibleIndex="13">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Set" FieldName="Setiembre" 
                            VisibleIndex="14">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Oct" FieldName="Octubre" 
                            VisibleIndex="15">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Nov" FieldName="Noviembre" 
                            VisibleIndex="16">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Dic" FieldName="Diciembre" 
                            VisibleIndex="18">
                            <PropertiesTextEdit DisplayFormatString="n0"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <SettingsBehavior AllowSelectByRowClick="True" 
                        AllowSelectSingleRowOnly="True" AllowFocusedRow="True" />
                    <SettingsPager PageSize="20">
                    </SettingsPager>
                    <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                    <SettingsText GroupPanel="Arrastre una columna hasta aquí para agruparla por esa columna." />
                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanelOnStatusBar>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </Images>
                    <ImagesFilterControl>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </ImagesFilterControl>
                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue">
                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                        </Header>
                        <LoadingPanel ImageSpacing="5px">
                        </LoadingPanel>
                    </Styles>
                    <StylesPager>
                        <PageNumber ForeColor="#3E4846">
                        </PageNumber>
                        <Summary ForeColor="#1E395B">
                        </Summary>
                    </StylesPager>
                    <StylesEditors ButtonEditCellSpacing="0">
                        <ProgressBar Height="21px">
                        </ProgressBar>
                    </StylesEditors>
                </dx:ASPxGridView>
          

    </div>
                 </ContentTemplate>
    </asp:UpdatePanel>
    <dx:ASPxPopupControl ID="pcCreateAccount" runat="server" Height="100%" 
                    Width="733px" ClientInstanceName="pcCreateAccount" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" EnableViewState="False" 
                    HeaderText="Buscar Vendedores" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    AllowDragging="True" CloseAction="CloseButton" Modal="True" 
              EnableHotTrack="False">
                    <HeaderImage Url="~/Images/user.png">
                    </HeaderImage>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">

    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
    
      <dx:ASPxPanel ID="Panel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent runat="server">
                            <table cellpadding="0" cellspacing="0">
                                  

                            <tr>
                            <td width="305px">
                                <dx:ASPxTextBox ID="txtBuscar" runat="server" Height="25px" Width="300px" 
                                    ClientInstanceName="txtBuscar" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <ClientSideEvents KeyPress="function(s, e) { 	
if(	(e.htmlEvent.keyCode == 8) || (e.htmlEvent.keyCode == 46) || (e.htmlEvent.keyCode == 32) || (e.htmlEvent.keyCode >= 48 && e.htmlEvent.keyCode <= 57)  ||
            (e.htmlEvent.keyCode >= 65 && e.htmlEvent.keyCode <= 90)  ||
            (e.htmlEvent.keyCode >= 96 && e.htmlEvent.keyCode <= 105)  ||
            (e.htmlEvent.keyCode >= 97 && e.htmlEvent.keyCode <= 122)
        ) {
    return true; }

  else {return _aspxPreventEvent(e.htmlEvent); }

}" />

                                    <Paddings PaddingLeft="5px" />
                                    <ValidationSettings>
                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                    </ValidationSettings>
                                </dx:ASPxTextBox>
                            
                            </td>
                            <td>
                            
                            <dx:ASPxButton ID="btnBuscar" runat="server" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Buscar" OnClick="btnBuscar_Click">
                                <Image Url="~/Images/search.png">
                                </Image>
    </dx:ASPxButton>
                            
                            </td>
                            
                            <td>
                            
                             <dx:ASPxTextBox ID="txtcodigo" runat="server" ClientInstanceName="txtcodigo" 
        Width="1px" BackColor="White" Height="1px" ForeColor="White">
        <ValidationSettings ErrorText="Valor inválido">
            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
        </ValidationSettings>
                                 <Border BorderColor="White" />
    </dx:ASPxTextBox>
                            </td>
                            <td>
                                <dx:ASPxTextBox ID="dscservicio" runat="server"
        ClientInstanceName="dscservicio" Width="1px" BackColor="White" Height="1px" ForeColor="White">
        <ValidationSettings ErrorText="Valor inválido">
            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
        </ValidationSettings>
                                    <Border BorderColor="White" />
    </dx:ASPxTextBox>
                            
                            </td>
                            <td>                        
                                Mostrar los primeros&nbsp;&nbsp;
                            </td>
                            <td>
                            
                                <dx:ASPxComboBox ID="cboOpcion" runat="server" SelectedIndex="0" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" Spacing="0" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Height="25px" AllowMouseWheel="False" EnableAnimation="False" 
                                    EnableDefaultAppearance="False" ShowLoadingPanel="False" 
                                    ShowLoadingPanelImage="False" ShowShadow="False">
                                    <Items>
                                        <dx:ListEditItem Text="100" Value="100" Selected="True" />
                                        <dx:ListEditItem Text="200" Value="200" />
                                    </Items>
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                    </LoadingPanelImage>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                    <Paddings PaddingLeft="5px" />
                                    <ValidationSettings>
                                        <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                    </ValidationSettings>
                                </dx:ASPxComboBox>
                                </td>
                                <td width="5">
                                    &nbsp;</td>
                                <td>
                                    Registros
                                </td>
                            </tr>




  
    
   
   
       
  
    
   
 
   

  
                                <tr>
                                    <td width="305px">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                    <td width="5">
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>




  
    
   
   
       
  
    
   
 
   

  
    </table>
   

   

    <dx:ASPxGridView ID="dgVendedor" runat="server" AutoGenerateColumns="False" 
        ClientInstanceName="dgVendedor" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" KeyFieldName="COD_VENDEDOR" Width="801px" 
                EnableCallBacks="False" OnPageIndexChanged="dgVendedor_PageIndexChanged">
        <ClientSideEvents FocusedRowChanged="function(s, e) {
var indice = s.focusedRowIndex;
this.txtCodigoVendedor.SetText(s.GetRowKey(s.GetFocusedRowIndex()));
OnGridFocusedRowChanged(s,e);
}" />
        <Columns>
            <dx:GridViewDataTextColumn Caption="Código" FieldName="COD_VENDEDOR" 
                ShowInCustomizationForm="True" VisibleIndex="1" 
                ToolTip="Codigo Vendedor">
                <PropertiesTextEdit ClientInstanceName="Codigo"><ValidationSettings ErrorText="Valor inválido"><RegularExpression ErrorText="Falló la validación de expresión Regular" /></ValidationSettings></PropertiesTextEdit>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Nombre" FieldName="NOMBRE" 
                ShowInCustomizationForm="True" VisibleIndex="2" ToolTip="Nombre Vendedor">
                <PropertiesTextEdit ClientInstanceName="Nombre"><ValidationSettings ErrorText="Valor inválido"><RegularExpression ErrorText="Falló la validación de expresión Regular" /></ValidationSettings></PropertiesTextEdit>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="ID_VENDEDOR" 
                ShowInCustomizationForm="True" Visible="False" VisibleIndex="0">
                <PropertiesTextEdit><ValidationSettings ErrorText="Valor inválido"><RegularExpression ErrorText="Falló la validación de expresión Regular" /></ValidationSettings></PropertiesTextEdit>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="Apellido" FieldName="APELLIDO" 
                ShowInCustomizationForm="True" VisibleIndex="4">
            </dx:GridViewDataTextColumn>
        </Columns>
        <SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True" />
        <SettingsPager PageSize="6">
            <AllButton Text="All">
            </AllButton>
            <NextPageButton Text="Next &gt;">
            </NextPageButton>
            <PrevPageButton Text="&lt; Prev">
            </PrevPageButton>
        </SettingsPager>
        <Settings ShowFilterBar="Auto" ShowFilterRow="True" ShowGroupPanel="True" 
            ShowHeaderFilterBlankItems="False" />
        <settingsloadingpanel text="Cargando&amp;hellip;" />
        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanelOnStatusBar>
            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanel>
        </Images>
        <ImagesFilterControl>
            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
            </LoadingPanel>
        </ImagesFilterControl>
        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
            CssPostfix="Office2010Blue">
            <Header ImageSpacing="5px" SortingImageSpacing="5px">
            </Header>
            <LoadingPanel ImageSpacing="5px">
            </LoadingPanel>
        </Styles>
        <StylesPager>
            <PageNumber ForeColor="#3E4846">
            </PageNumber>
            <Summary ForeColor="#1E395B">
            </Summary>
        </StylesPager>
        <StylesEditors ButtonEditCellSpacing="0">
            <ProgressBar Height="21px">
            </ProgressBar>
        </StylesEditors>
    </dx:ASPxGridView>
     <br />

  


      <table cellpadding="0" cellspacing="0">
      
      <tr>
      <td width="105">
      
       <dx:ASPxButton ID="btnaceptar" runat="server" 
        Text="Aceptar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
              CssPostfix="Office2010Blue" 
              SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
              Width="100px" AutoPostBack="False" UseSubmitBehavior="False">
           <ClientSideEvents Click="function(s, e) {

    pcCreateAccount.Hide();
}" />
           <Image Url="~/Images/ok.png">
           </Image>
    </dx:ASPxButton>

    
      </td>


      <td>
         
         <dx:ASPxButton ID="btncancelar" runat="server" AutoPostBack="False" 
        Text="Cancelar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
              CssPostfix="Office2010Blue" 
              SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
              Width="100px" UseSubmitBehavior="False">
        <ClientSideEvents Click="function(s, e) {
	pcCreateAccount.Hide();
}" />
             <Image Url="~/Images/cancel.gif">
             </Image>
    </dx:ASPxButton>
      
      
      </td>
      
      </tr>
      
      </table>

   
 

          
       </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>

   </ContentTemplate>
    </asp:UpdatePanel>

   </dx:PopupControlContentControl>
</ContentCollection>
   </dx:ASPxPopupControl>


   <dx:ASPxPopupControl ID="popupErrores" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupErrores" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue" 
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
              Width="300px" EnableHotTrack="False">
                
                    <HeaderImage Url="~/Images/icon_message.png">
                    </HeaderImage>
                
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                    <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                        
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Ingrese todo los&nbsp; campos !<br /> &nbsp;</td>
                        
                        </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                        
                        </td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton6" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupErrores.Hide();
}" />
                                <Image Url="~/Images/ok.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>



</asp:Content>
